package com.koo.framework.feign;

import com.koo.common.vo.AuditParams;
import com.koo.common.vo.AuditVo;
import com.koo.common.vo.UserVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "store-admin")
public interface SystemFeignService {

    @GetMapping("/sys/user/getUserBytoken")
    UserVo getUserBytoken(@RequestParam String token);

    @PostMapping("/sys/sysaudit/saveAudit")
    String saveAduit(@RequestBody AuditVo auditVo);

    @PostMapping("/sys/sysaudit/updateAudit")
    String updateAudit(@RequestBody AuditParams auditParams);

}
